package com.doit.doit46;

import org.apache.hadoop.hive.ql.exec.UDF;

public class MyUDF1 extends UDF {
    public static String evaluate(String phoneNum) {
        String start = phoneNum.substring(0, 4);
        String end = phoneNum.substring(phoneNum.length() - 3, phoneNum.length());
        return start + "****" + end;
    }


}
